package br.ucb.modelo.dao;

import br.ucb.exceptions.PersistenceException;
import java.util.List;

public interface DAO <E> {
     public int insert(E e) throws PersistenceException;
     public int update(E e) throws PersistenceException;
     public int delete(Long id) throws PersistenceException;
     public E findByID(Long id) throws PersistenceException;
     public List <E> findAll() throws PersistenceException;
}
